// https://blog.csdn.net/m0_37410739/article/details/125023157
// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import '../mock'
import ElementPlus from 'element-plus' // 引入element-plus
import 'element-plus/dist/index.css' // 引入element-plus的样式
import '@/assets/style/index.scss' // global css
import '@/components/lt-table-column-operation/table-edit.css'

// 文档地址: https://blog.csdn.net/weixin_44867717/article/details/125593925
import contextmenu from 'v-contextmenu'
import 'v-contextmenu/dist/themes/default.css'

// iconfont
import '@/assets/iconfont/iconfont.css'

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(router)
app.use(store)
app.use(ElementPlus) // use element-plus
app.use(contextmenu)
app.mount('#app')
